import { httpRequestMethodConst } from '../consts/dashboard-const';
import type DataSourceGroupHttpReqConfigType from './data-source-group-http-req-config-type';
import type DataSourceGroupJsonConfigType from './data-source-group-json-config-type';

export default class DataSourceGroupType {
  type: string = '';
  jsonConfig: DataSourceGroupJsonConfigType = {
    data: '{}',
  };
  httpRequestConfig: DataSourceGroupHttpReqConfigType = {
    method: httpRequestMethodConst.get,
    autoReload: false,
    reloadTime: 60000,
    url: '',
    params: {},
    resultHandle: '(data) => data',
  };
}
